<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <!-- v-model 双向绑定 -->
        <input type="text" v-model="msg">
        {{msg}}
        <input type="radio" value="男" v-model="user.sex">男
        <input type="radio" value="女" v-model="user.sex">女
        <!-- {{user.sex}} -->
    </div>
    <script src="js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#box",
            data:{
                msg:"hello",
                user:{
                    sex:"男"
                }
            }
        })
    </script>
</body>
</html>